/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 luck_icon_window.h

	$Header: /heroes4/luck_icon_window.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( LUCK_ICON_WINDOW_H_INCLUDED )
#define LUCK_ICON_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bitmap_group_window.h"

class t_creature_stack;

class t_luck_icon_display : public t_bitmap_group_window
{
public:
	t_luck_icon_display( t_screen_rect const& rect, t_window* parent, int value = 0 );

	void set_value( int value );
};


// -----------------------------------------------------------------
// class to display & give information about morale
// -----------------------------------------------------------------
class t_luck_icon_window : public t_luck_icon_display
{
public:
	t_luck_icon_window( t_screen_rect const& rect, t_window* parent );

	void set_creature( t_creature_stack const* creature );
	void update();
protected:
	t_creature_stack const* m_creature;
};

inline t_luck_icon_window::t_luck_icon_window( t_screen_rect const& rect, t_window* parent )
                         : t_luck_icon_display( rect, parent )
{
	m_creature = 0;
}

#endif // MORALE_ICON_WINDOW_H_INCLUDED